/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.andersen.database.entity;

import java.sql.Date;

/**
 *
 * @author Corvin
 */
public class PaymentEntity {
    
    private long id;
    private long buyingId;
    private long paymentSum;
    private Date paymentDate;
    
    private BuyingEntity buying;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getBuyingId() {
        return buyingId;
    }

    public void setBuyingId(long buyingId) {
        this.buyingId = buyingId;
    }

    public long getPaymentSum() {
        return paymentSum;
    }

    public void setPaymentSum(long paymentSum) {
        this.paymentSum = paymentSum;
    }

    public Date getPaymentDate() {
        return paymentDate;
    }

    public void setPaymentDate(Date paymentDate) {
        this.paymentDate = paymentDate;
    }

    public BuyingEntity getBuying() {
        return buying;
    }

    public void setBuying(BuyingEntity buying) {
        this.buying = buying;
    }

    @Override
    public String toString() {
        return "PaymentEntity{" + "id=" + id + ", buyingId=" + buyingId + ", paymentSum=" + paymentSum + ", paymentDate=" + paymentDate + ", buying=" + buying + '}';
    }
    
    
}
